package com.ksr.logistics.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class IndexController {
    
    @RequestMapping("/main")
    public String index(){
        return "index";
    }

    @RequestMapping("/welcome")
    public String welcome(){
        return "welcome";
    }

    @RequestMapping("/logout")
    public String logout(){
        return "redirect:/login.jsp";
    }

    @RequestMapping("/adminPage")
    @RequiresPermissions("index:adminPage")
    public String adminPage(){
        return "adminPage";
    }

    @RequestMapping("/permissionPage")
    @RequiresPermissions("index:permissionPage")
    public String permissionPage(){
        return "permissionPage";
    }

    @RequestMapping("/rolePage")
    @RequiresPermissions("index:rolePage")
    public String rolePage(){
        return "rolePage";
    }

    @RequestMapping("/baseDataPage")
    @RequiresPermissions("index:baseDataPage")
    public String baseDataPage(){
        return "baseDataPage";
    }

    @RequestMapping("/customerPage")
    @RequiresPermissions("index:customerPage")
    public String customerPage(){
        return "customerPage";
    }

    @RequestMapping("/orderPage")
    @RequiresPermissions("index:orderPage")
    public String orderPage(){
        return "orderPage";
    }

}
